package com.fly.estore.dao;

import com.fly.estore.domain.ProductInfo;

import java.util.List;

/**
 * Created by Fly on 2016/4/21.
 */
public interface ProductDAO {

    public int addProduct(ProductInfo productInfo);

    public int updateProduct(ProductInfo productInfo);

    public int deleteById(String productId);

    public ProductInfo getById(String productId);

    public List<ProductInfo> getList();

    public List<ProductInfo> queryList(String productName, String productCode, String productCatalogId, String productBrandId);

    public int getProductCount();
}
